@extends('admin.app')

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      用户信息
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-lg-2 control-label">用户名：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->username??'--' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">姓名：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->userInfo->name??'--' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">用户角色:</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ ($user->hasRole('Agent')?'经纪人':'').' '.($user->hasRole('Loaner')?'融资人':'').' '.($user->hasRole('User')?'投资人':'') }}</p>
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">经纪人：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $broker_mame}}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">身份证号码：</label>
          <div class="col-lg-10">
            <p class="form-control-static">
            @if(!empty($user->userInfo->id_card))
              {{substr($user->userInfo->id_card, 0, 4) . '**********' . substr($user->userInfo->id_card, 14) }}</p>
            @else
              --
            @endif
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">是否实名:</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->userInfo->name_verified == 1?'Y':'N' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">邮箱地址：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->email??'--' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">邮箱认证:</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->email_verified == 1 ?'Y':'N' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">手机号码：</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->phone_number }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">手机验证</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->phone_verified == 1 ?'Y':'N' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">支付账户激活</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->userInfo->is_set_pay_password?'Y':'N' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">激活时间:</label>
          <div class="col-lg-10">
            <p class="form-control-static">{{ $user->userInfo->set_pay_password_time??'--' }}</p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="javascript:history.back()" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection